<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <div id="menu">
      <ul>
	<?php if ($sf_user->isAuthenticated()): ?>
		<li><?php echo link_to('GESTIONE ORDINANZE', 'ordinanza') ?></li>
		<?php if ($sf_user->isSuperAdmin()): ?>
			<li><?php echo link_to('GESTIONE UTENTI', 'sf_guard_user') ?></li>
		<?php endif ?>
		<li>Utente: <b><?php echo $sf_user->getUsername() ?> </b>
		    <?php echo link_to('Logout', 'sf_guard_signout') ?></li>
	<?php else: ?>
		<li><?php echo link_to('Login', 'sf_guard_signin') ?></li>
	<?php endif ?>
      </ul>
    </div>
    <?php echo $sf_content ?>
  </body>
</html>
